var args = process.argv.splice(2);
// if (!args || args.length < 2){
// 	console.log("USAGE: node appToken.js  [appKey] [appSecret]");
// 	return;
// }

var security = require('../providers/security');

var appKey = args[0] || "2b966fb5a304";
var appSecret = args[1] || "496bd78cead1a09d578e5e430ada63fc";
var tsNow = Math.floor(new Date().getTime() / 1000);
var sToken = appKey + '|' +  tsNow + '|' + appSecret;
var sDigt = security.md5(sToken);
var appToken = appKey + '|' +  tsNow + '|' + sDigt
console.log('appToken: ' + appToken);
